import { Init, Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { CollectionInfoEntity } from '../entity/info';

/**
 * collection模块-收藏信息
 */
@Provide()
export class CollectionInfoService extends BaseService {
  @InjectEntityModel(CollectionInfoEntity)
  collectionInfoEntity: Repository<CollectionInfoEntity>;

  @Init()
  async init() {
    await super.init();
    this.setEntity(this.collectionInfoEntity);
  }
 
}
